package com.thz.system.service.video;

import com.thz.system.pojo.video.Video;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Description
 * @Author thz
 * @Date 2025/5/11
 */
public interface IVideoService {
    /**
     * Upload a video
     * @param file Video file
     * @param title Video title
     * @param content Video description
     * @param courseId Associated course ID
     * @return Video object with upload information
     */
    int uploadVideo(MultipartFile file, String title, String content, Long courseId);

    /**
     * Get video details by ID
     * @param videoId Video ID
     * @return Video object
     */
    Video getVideoById(Long videoId);

    List<Video> list(Long courseId);

    int update(Long videoId,MultipartFile file, String title, String content);

    int delete(Long videoId);
}
